<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<link href="style/style.css" rel="stylesheet" type="text/css">
<link href="style/global.css" rel="stylesheet" type="text/css"><script type="text/javascript" src="<%=basePath%>/js/global.js"></script>
<jsp:include page="/jqueryInclude.jsp" />
<div class="rightCon" align="center">
	<div class="rightTitle" align="left">
		<h3>
			<s:property value="nav" escape="false"/>
		</h3>
	</div>
	<table class="listTable">
		<tr class="listTitle">
			<td width="6%">
				序号
			</td>
			<td width="10%" align="center" valign="middle">
				日志类型
			</td>
			<td width="20%" align="center" valign="middle">
				操作内容
			</td>
			<td width="25%" align="center" valign="middle">
				变更内容
			</td>
			<td width="8%" align="center" valign="middle">
				操作人账号
			</td>
			<td align="center" width="8%" valign="middle">
				操作人IP
			</td>
			<td align="center" width="13%" valign="middle">
				操作时间
			</td>
			<td width="10%">
				操作
			</td>
		</tr>
		<s:iterator id="bean" value="%{loglist}" status="stuts">
			<tr class="listTr">
				<td align="center" valign="middle">
					<s:property value="#stuts.count" />
				</td>
				<td align="center" valign="middle">
					<s:property value="#bean.type" />
				</td>
				<td align="center" valign="middle"
					title="<s:property value="#bean.content"  escape="false"/>">
					<s:if test="#bean.content.lenth()>50">
						<s:property value="#bean.content.subString(0,50)" escape="false" />...
							</s:if>
					<s:else>
						<s:property value="#bean.content" escape="false" />
					</s:else>
				</td>
				<td align="center" valign="middle"
					title="<s:property value="#bean.bgcontent"  escape="false"/>">
					<s:if test="#bean.bgcontent.length()>50">
						<s:property value="#bean.bgcontent.substring(0,50)" escape="false" />...
							</s:if>
					<s:else>
						<s:property value="#bean.bgcontent" escape="false" />
					</s:else>
				</td>
				<td align="center" valign="middle">
					<s:property value="#bean.opzh" />
				</td>
				<td align="center" valign="middle">
					<s:property value="#bean.opip" />
				</td>
				<td align="center" valign="middle">
					<s:property value="#bean.optime" />
				</td>
				<td align="center" valign="middle" class="add">
					
					<a href="lookLog.do?bean.id=<s:property value="#bean.id"/>"><img src="images/btn/look.gif" alt="查看"/></a>
					<!-- 
					<a
						href="javascript:if(confirm('您真的要删除吗?点击确认进行删除！否则请点取消'))window.location='deleteLog.do?bean.id=<s:property value="#bean.id" />&pageno=<s:property value='pageno'/>'"><img src="images/system/delete.gif" alt="删除"/></a>
					 -->	
				</td>
			</tr>
		</s:iterator>
	</table>
	<table width="92%" border="0" align="center" cellpadding="0"
		cellspacing="0">
		<tr>
			<td width="52%" height="38">
			
				<!-- <a href="addSysPortal.do?action=before" class="search button01">添加</a>
				 -->
				<a
					onclick="jBox.open('div-jBoxID','div','search1','按条件查询','width=700,height=160,center=true,minimizable=true,resize=false,draggable=true,model=false');"
					href="javascript://" class="search button01">查询</a>
			</td>
			<td width="48%" align="right">
				<span style="text-align: center">${pageStr}</span>
			</td>
		</tr>
	</table>
</div>
<div id="search1" style="display: none">
	<form method="post" action="projectLogList.do">
		<table width="97%" border="0" align="center" cellpadding="5"
			cellspacing="0">
			<tr>
				<td height="60" valign="top">
					<table width="98%" border="0" align="center" cellpadding="1"
						cellspacing="1">
						<tr>
							<td width="20%" align="center">
								日志类型：
							</td>
							<td>
								<input type="text" name="bean.type" title="日志类型" id="type" />
							</td>
							<td width="20%" align="center">
								操作人账号：
							</td>
							<td width="30%" align="center">
								<input type="text" name="bean.ygzh" title="操作人账号" id="ygzh" />
						</tr>
						<tr>
							<td width="30%" align="center" colspan="4" class="maintb1">
								<center>
									<input class="subbg" style="height: 30px" id="button2"
										type="submit" value="搜索" />
									&nbsp;&nbsp;&nbsp;&nbsp;
									<input class="subbg" style="height: 30px" id="button2"
										type="reset" value="重置" />
								</center>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
	</form>
</div>

